<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>新型冠状肺炎全球感染最新情况</title>
    <style>
        input{
            width:180px;
            height: 30px;
            border:1px solid #7FCC0B;
            border-right: none;
            border-radius: 4px;
        }
    </style>
</head>
<body>
<form action="/country" target="_blank" th:align="center" method="post">
    <input type="text" name="countryOrRegion" size="60">
    <input type="submit" value="搜索" />
</form>

    <table width="1000" border="1" cellspacing="1" cellpadding="5" align="center">
        <thead>
        <tr>
            <th>省/州</th>
            <th>国家/地区</th>
            <th>最新感染人数</th>
            <th>相比昨天增长</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="item : ${statList}">
            <td th:text="${item.province_state}"></td>
            <td th:text="${item.country_region}"></td>
            <td th:text="${item.latestTotalCases}"></td>
            <td th:text="${item.diffFromPrevDay}"></td>
        </tr>
        </tbody>
    </table>

</body>
</html>

